
package com.shop.cereshop.commons.domain.nearby;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 买家附近的人图片库（仅图片，无相册分类）
 * </p>
 *
 * @since 2025-09-25
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@TableName("cere_buyer_nearby_image")
@ApiModel(value = "BuyerNearbyImage", description = "买家附近的人图片库（仅图片，无相册分类）")
@AllArgsConstructor
public class BuyerNearbyImage {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "主键ID不能为空")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 买家用户ID（cere_buyer_user.id）
     */
    @ApiModelProperty(value = "买家用户ID（cere_buyer_user.id）")
    @NotNull(message = "买家用户ID（cere_buyer_user.id）不能为空")
    @TableField("buyer_user_id")
    private Long buyerUserId;


    /**
     * 图片URL
     */
    @ApiModelProperty(value = "图片URL")
    @NotEmpty(message = "图片URL不能为空")
    @Length(max = 1024, message = "图片URL长度不能超过1024")
    @TableField(value = "image_url", condition = LIKE)
    private String imageUrl;


    /**
     * 图片描述/备注
     */
    @ApiModelProperty(value = "图片描述/备注")
    @Length(max = 255, message = "图片描述/备注长度不能超过255")
    @TableField(value = "description", condition = LIKE)
    private String description;


    /**
     * 排序值(越大越前)
     */
    @ApiModelProperty(value = "排序值(越大越前)")
    @NotNull(message = "排序值(越大越前)不能为空")
    @TableField("sort_order")
    private Integer sortOrder;


    /**
     * 状态: 1正常,2审核中,3禁用
     */
    @ApiModelProperty(value = "状态: 1正常,2审核中,3禁用")
    @NotNull(message = "状态: 1正常,2审核中,3禁用不能为空")
    @TableField("status")
    private Integer status;


    /**
     * 是否删除(1是,0否)
     */
    @ApiModelProperty(value = "是否删除(1是,0否)")
    @NotNull(message = "是否删除(1是,0否)不能为空")
    @TableField("is_deleted")
    private Boolean isDeleted;


    /**
     * 创建时间(上传时间)
     */
    @ApiModelProperty(value = "创建时间(上传时间)")
    @NotNull(message = "创建时间(上传时间)不能为空")
    @TableField("created_at")
    private LocalDateTime createdAt;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @NotNull(message = "更新时间不能为空")
    @TableField("updated_at")
    private LocalDateTime updatedAt;




}
